from none_bot_py_plugins.gen_svr.gen_svr import *


class ReportSvr(GenSvrBase):

    def handle_cast(self, from_id, msg, state):
        return "ok", state

    def handle_info(self, msg, state):
        return "ok", state

    def handle_call(self, from_id, msg, state):
        return "ok", "ok, received!", state

    def handle_stop(self, result, state):
        pass

    def handle_error(self, msg, state):
        return "ok", state

    def _init_(self, *args):
        print("report_svr ", self.recv_id, " create")
        return []
